x86/boot: check for not allowed sections before linking
authorDaniel Kiper <daniel.kiper@oracle.com>
Wed, 25 Nov 2015 16:24:36 +0000 (17:24 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Nov 2015 16:24:36 +0000 (17:24 +0100)
commitd380b3559734739ae009cd3c0e9aabb5602863e2
treefa9646c6e00ba18e6182a59004aa23c2704a8a04
parentc708181305621e5393b5e1ee316b6784585bdf93
x86/boot: check for not allowed sections before linking

Currently check for not allowed sections is performed just after
compilation. However, if compilation succeeds and check fails then
second build will create xen.gz/xen.efi without any visible error.
This happens because %.o: %.c recipe created object file during first
run and make do not execute this recipe during second run. So, look
for not allowed sections before linking. This way check will be
executed every time.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/build32.mk